package com.mblog.article.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mblog.article.dao.MBlogTypeMapper;
import com.mblog.article.entity.MBlogMain;
import com.mblog.article.entity.MBlogType;
import com.mblog.util.PageBean;
import com.mblog.util.PageHelper.Page;

@Service("ArticleTypeService")
public class ArticleTypeServiceImp  implements ArticleTypeService{
	
	@Autowired MBlogTypeMapper mBlogTypeMapper;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		
		return mBlogTypeMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(MBlogType record) {
		
		return mBlogTypeMapper.insert(record);
	}

	@Override
	public MBlogType selectByPrimaryKey(Integer id) {
		
		return mBlogTypeMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<MBlogType> selectAll() {
		
		return mBlogTypeMapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(MBlogType record) {
		
		return mBlogTypeMapper.updateByPrimaryKey(record);
	}

}